package com.lagou.edu.course.job;

import com.lagou.edu.course.service.ICourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 课程自动上架功能
 *
 * @author : chenrg
 * @create 2020/7/9 21:16
 **/
@Component
public class CourseAutoOnlineJob {

    @Autowired
    private ICourseService courseService;

//    /**
//     * 1、简单任务示例（Bean模式）
//     */
//    @XxlJob("courseAutoOnlineJobHandler")
//    public ReturnT<String> execute(String param) throws Exception {
//        XxlJobLogger.log("Execute course auto online.");
//        courseService.courseAutoOnline();
//        return ReturnT.SUCCESS;
//    }
}
